import {
  get,
  post,
  //postForm,
  del
} from '@/utils/http'
const packageName = `http://124.70.196.178:8080/intelligent_control_webservice_eeds`

/**
 * 演示视频
 */
// 获取全部演示视频
export function getShowVideos(params) {
  return get(`${packageName}/pc/showVideo/getShowVideos`, params)
}
// 获取演示视频列表
export function getShowVideoList(params) {
  return get(`${packageName}/pc/showVideo/getShowVideoList`, params)
}
// 获取演示视频详情
export function getShowVideo(params) {
  return get(`${packageName}/pc/showVideo/getShowVideo`, params)
}
// 删除演示视频
export function delShowVideo(params) {
  return del(`${packageName}/pc/showVideo/delShowVideo`, params)
}
// 保存演示视频
export function saveShowVideo(params) {
  return post(`${packageName}/pc/showVideo/saveShowVideo`, params)
}
// 批量保存演示视频
export function batchSaveShowVideo(params) {
  return post(`${packageName}/pc/showVideo/batchSaveShowVideo`, params)
}

/**
 * 学习资料
 */
// 获取全部学习资料
export function getLearnMaterials(params) {
  return get(`${packageName}/pc/learnMaterial/getLearnMaterials`, params)
}
// 获取学习资料列表
export function getLearnMaterialList(params) {
  return get(`${packageName}/pc/learnMaterial/getLearnMaterialList`, params)
}
// 获取学习资料详情
export function getLearnMaterial(params) {
  return get(`${packageName}/pc/learnMaterial/getLearnMaterial`, params)
}
// 删除学习资料
export function delLearnMaterial(params) {
  return del(`${packageName}/pc/learnMaterial/delLearnMaterial`, params)
}
// 保存学习资料
export function saveLearnMaterial(params) {
  return post(`${packageName}/pc/learnMaterial/saveLearnMaterial`, params)
}
// 批量保存学习资料
export function batchSaveLearnMaterial(params) {
  return post(`${packageName}/pc/learnMaterial/batchSaveLearnMaterial`, params)
}
